#include "startgame.h"
#include "ui_startgame.h"
#include"mainscence.h"
#include<QSound>

QSound* sound = new QSound(MENUMUSIC_PATH);


startGame::startGame(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::startGame)
{

    ui->setupUi(this);

/*******************/

    sound->setLoops(QSound::Infinite);
    sound->play();

/*******************/

}

startGame::~startGame()
{
    delete ui;
}

void startGame::on_pushButton_clicked()
{
    this->hide();
    sound->stop();
    emit nextPage();
}
